package com.hj.springframework3.proxy;

/**
 * @Author : hujing
 * @Date: 2025/7/7 9:41
 * @Description:
 */
public class SecondProxyBean extends OriginBean{
    final OriginBean target;
    
    public SecondProxyBean(OriginBean target){
        this.target = target;
    }

    @Override
    public void setVersion(String version) {
        target.setVersion(version);
    }

    @Override
    public String getName() {
        return target.getName();
    }

    @Override
    public String getVersion() {
        return target.getVersion();
    }
}
